//
//  SRSportService.h
//  SportRing
//
//  Created by Apple on 14/10/29.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import <Foundation/Foundation.h>

@class SRSleep;
@class SRSportPart;
@class SRSportTask;

@interface SRSportNetService : NSObject

//上传计步数据 10
+ (RACSignal *)uploadSportPart:(SRSportPart *)part;

//获取月步数据统计 11
+ (RACSignal *)getStatisticsForMonth:(NSString *)monthStr;

+ (void)getStatisticsForMonth:(NSString *)monthStr withSuccess:(CompletionBlockWithDictionary)success fail:(CompletionBlockWithError)fail;

//获取指定月的每天数据 12
+ (RACSignal *)getDaySportForMonth:(NSString *)monthStr;

+ (void)getDaySportForMonth:(NSString *)monthStr withSuccess:(CompletionBlockWithDictionary)success fail:(CompletionBlockWithError)fail;

//获取天数据 13
+ (RACSignal *)getDaySportWithDate:(NSString *)date;

//上传计步任务数据 14
+ (RACSignal *)uploadTask:(SRSportTask *)task;

//获取月计步任务统计 15
+ (RACSignal *)getTaskStatisticsByMonth:(NSString *)month;

//获取天计步任务数据 16
+ (RACSignal *)getTaskByDay:(NSString *)dayStr;

+ (void)getTasksByDayWithStartDate:(NSString *)startDate endDate:(NSString *)endDate withSuccess:(CompletionBlockWithDictionary)success fail:(CompletionBlockWithError)fail;

//上传睡眠数据 17
+ (RACSignal *)uploadSleepWithSleep:(SRSleep *)sleep;

//获取天睡眠数据 18
+ (RACSignal *)getSleepForDay:(NSString *)dayStr;

//睡眠评估 19
+ (RACSignal *)evaluateSleepWithDuration:(int)duration
                                    rems:(int)rems
                                   nrems:(int)nrems
                                  wakeup:(int)wakeup;

//运动评估 20
+ (RACSignal *)evaluateCounterWithCounter:(int)counter
                                  mileage:(int)mileage
                                  calorie:(int)calorie;


@end
